import requests
import json

payload_match = {
    #'term': '',
    # 'term': 'demo',
    'from': 1111,
    'size': 100,
    'filters': {
        #'category_social': ['娱乐']
    },
    # 'highlight': True,
    # 'image_search': True,
    # 'filter_keywords': ["美女"]
    'youka_id': '2x1'
}

r_match = requests.post('http://localhost:5001/search/v1.1/only_hotter/star_articles', json=payload_match, timeout=200, headers={"youka_id": "21", 'User-Agent': 'xxxxe', 'text': '112'})
print(r_match.headers)
a_match = r_match.json()
print("2\n")
print(json.dumps(a_match, indent=4, sort_keys=True, ensure_ascii=False))
